#!/bin/sh
TFILE="/media/testdrive/result.txt"
#Esperamos hasta que se haya completado el arranque
while ! test -f /var/run/runlevel; do
	sleep 1
done

echo "----- STARTING TEST -----"
echo " EXECUTING TEST IN `pwd`" > $TFILE

ls -lah /mnt/ >> $TFILE

if /usr/local/opendomo/loadSystemConfiguration.sh >> $TFILE 
then
	cat /var/log/loadcfg.log >> $TFILE
	echo "OK" >> $TFILE	
else
	echo "FAILED" >> $TFILE	
fi

reboot
